@model ReverseProxySettingsViewModel

<fieldset class="form-group" asp-validation-class-for="EnableXForwardedFor">
    <div class="form-check">
        <label class="form-check-label">
            <input asp-for="EnableXForwardedFor" class="form-check-input" />
            @T["Enables the forwarding of the HTTP header X-Forwarded-For"]
        </label>
    </div>
    <span class="hint">@T["Enables the forwarding of the HTTP header X-Forwarded-For"]</span>
    <span class="hint">@T["Current request value;"] @Context.Connection.RemoteIpAddress</span>
</fieldset>

<fieldset class="form-group" asp-validation-class-for="EnableXForwardedProto">
    <div class="form-check">
        <label class="form-check-label">
            <input asp-for="EnableXForwardedProto" class="form-check-input" />
            @T["Enables the forwarding of the HTTP header X-Forwarded-Proto"]
        </label>
    </div>
    <span class="hint">@T["Enables the forwarding of the HTTP header X-Forwarded-Proto"]</span>
    <span class="hint">@T["Current request value;"] @Context.Request.Scheme</span>
</fieldset>

<fieldset class="form-group" asp-validation-class-for="EnableXForwardedHost">
    <div class="form-check">
        <label class="form-check-label">
            <input asp-for="EnableXForwardedHost" class="form-check-input" />
            @T["Enables the forwarding of the HTTP header X-Forwarded-Host"]
        </label>
    </div>
    <span class="hint">@T["Enables the forwarding of the HTTP header X-Forwarded-Host"]</span>
    <span class="hint">@T["Current request value;"] @Context.Request.Host</span>
</fieldset>

<span class="hint">
    Documentation available at; https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-2.1
</span>